#include "Arc.h"

namespace Graph_lib{

	Arc::Arc(Point p, int w, int h, double d, double d1):degree_s(d), degree_e(d1), width(w), height(h) 
	{
		add(Point(p.x-w/2, p.y-h/2));
	}

	Point Arc::center() const
	{
		return Point(point(0).x+width/2, point(0).y+height/2);
	}


	void Arc::draw_lines() const
	{
		if (color().visibility())
			fl_arc(point(0).x, point(0).y, width, height, degree_s, degree_e);
	}
}